<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //  开始符号/^   结束符号$/
    const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
    const email = "example@example.com";

    if (email.match(emailRegex)) {
    console.log("Valid email address");
    } else {
    console.log("Invalid email address");
    }
</script>
</html>